Optimal. Leaf size=64 \[ \frac {d^2 (3 b c-a d) x}{b^2}+\frac {d^3 x^2}{2 b}+\frac {c^3 \log (x)}{a}-\frac {(b c-a d)^3 \log (a+b x)}{a b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {84}
\begin {gather*} -\frac {(b c-a d)^3 \log (a+b x)}{a b^3}+\frac {d^2 x (3 b c-a d)}{b^2}+\frac {c^3 \log (x)}{a}+\frac {d^3 x^2}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 84
Rubi steps
\begin {align*} \int \frac {(c+d x)^3}{x (a+b x)} \, dx &=\int \left (\frac {d^2 (3 b c-a d)}{b^2}+\frac {c^3}{a x}+\frac {d^3 x}{b}+\frac {(-b c+a d)^3}{a b^2 (a+b x)}\right ) \, dx\\ &=\frac {d^2 (3 b c-a d) x}{b^2}+\frac {d^3 x^2}{2 b}+\frac {c^3 \log (x)}{a}-\frac {(b c-a d)^3 \log (a+b x)}{a b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 59, normalized size = 0.92 \begin {gather*} \frac {a b d^2 x (6 b c-2 a d+b d x)+2 b^3 c^3 \log (x)-2 (b c-a d)^3 \log (a+b x)}{2 a b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 85, normalized size = 1.33
method | result | size |
default | \(-\frac {d^{2} \left (-\frac {1}{2} b d \,x^{2}+a d x -3 b c x \right )}{b^{2}}+\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (b x +a \right )}{b^{3} a}+\frac {c^{3} \ln \left (x \right )}{a}\) | \(85\) |
norman | \(\frac {d^{3} x^{2}}{2 b}-\frac {d^{2} \left (a d -3 b c \right ) x}{b^{2}}+\frac {c^{3} \ln \left (x \right )}{a}+\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (b x +a \right )}{b^{3} a}\) | \(88\) |
risch | \(\frac {d^{3} x^{2}}{2 b}-\frac {d^{3} a x}{b^{2}}+\frac {3 d^{2} c x}{b}+\frac {a^{2} \ln \left (-b x -a \right ) d^{3}}{b^{3}}-\frac {3 a \ln \left (-b x -a \right ) c \,d^{2}}{b^{2}}+\frac {3 \ln \left (-b x -a \right ) c^{2} d}{b}-\frac {\ln \left (-b x -a \right ) c^{3}}{a}+\frac {c^{3} \ln \left (x \right )}{a}\) | \(115\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 91, normalized size = 1.42 \begin {gather*} \frac {c^{3} \log \left (x\right )}{a} + \frac {b d^{3} x^{2} + 2 \, {\left (3 \, b c d^{2} - a d^{3}\right )} x}{2 \, b^{2}} - \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (b x + a\right )}{a b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.16, size = 97, normalized size = 1.52 \begin {gather*} \frac {a b^{2} d^{3} x^{2} + 2 \, b^{3} c^{3} \log \left (x\right ) + 2 \, {\left (3 \, a b^{2} c d^{2} - a^{2} b d^{3}\right )} x - 2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (b x + a\right )}{2 \, a b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 112 vs.
\(2 (54) = 108\).
time = 0.68, size = 112, normalized size = 1.75 \begin {gather*} x \left (- \frac {a d^{3}}{b^{2}} + \frac {3 c d^{2}}{b}\right ) + \frac {d^{3} x^{2}}{2 b} + \frac {c^{3} \log {\left (x \right )}}{a} + \frac {\left (a d - b c\right )^{3} \log {\left (x + \frac {- a b^{2} c^{3} + \frac {a \left (a d - b c\right )^{3}}{b}}{a^{3} d^{3} - 3 a^{2} b c d^{2} + 3 a b^{2} c^{2} d - 2 b^{3} c^{3}} \right )}}{a b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.62, size = 91, normalized size = 1.42 \begin {gather*} \frac {c^{3} \log \left ({\left | x \right |}\right )}{a} + \frac {b d^{3} x^{2} + 6 \, b c d^{2} x - 2 \, a d^{3} x}{2 \, b^{2}} - \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left ({\left | b x + a \right |}\right )}{a b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 65, normalized size = 1.02 \begin {gather*} \frac {d^3\,x^2}{2\,b}-x\,\left (\frac {a\,d^3}{b^2}-\frac {3\,c\,d^2}{b}\right )+\frac {c^3\,\ln \left (x\right )}{a}+\frac {\ln \left (a+b\,x\right )\,{\left (a\,d-b\,c\right )}^3}{a\,b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________